package com.hotai.controller;

import com.hotai.comment.dtos.ResponseResult;
import com.hotai.service.EquipmentService;
import com.hotai.vo.equipment.EquipmentDetileList;
import com.hotai.vo.equipment.EquipmentList;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/guanEqu")
@RestController
@CrossOrigin
public class GuanEquipmentController {

    @Autowired
    private EquipmentService equipmentService;


    @RequestMapping("/list")
    private ResponseResult EuipmentList( EquipmentList query){
        return  equipmentService.GuanEuipmentPage(query);
    }
    @RequestMapping("/detail")
    private ResponseResult EuipmentListDetaile(@Param("id") Integer id){
        return    equipmentService.GuanEuipmentDetaile(id);
    }
}

